<?php
namespace app\agent\validate;

use think\validate;

class Shop extends Validate
{
    protected $rule = [
        'name' => 'require|token',
        'sp_username' => 'require',
        // 'mobile' => 'require',
        'true_name' => 'require',
        'company' => 'require',
        'legal_person' => 'require',
        'bus_license' => 'require',
        // 'phone' => 'require',
        'address' => 'require',
    ];

    protected $message = [
        'name.require'=>'店铺名称必填',
        'username.require'=>'账号不能为空',
        // 'mobile.require'=>'手机号码必填',
        'true_name.require'=>'负责人姓名必填',
        'company.require'=>'营业执照注册名称必填',
        'legal_person.require'=>'营业执照注册法人必填',
        'bus_license.require'=>'营业执照编号必填',
        // 'phone.require'=>'商户电话必填',
        'district.require'=>'区域必须选择',
        'address.require'=>'商户地址必须填写',
    ];
}